<%@ page import="instructor.sample.*"%>
<%@ page import="java.text.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<%

	Customer c = new Customer();
%>

<%

	int r = c.updateCustomer(request.getParameter("customerid").toString(), 
			request.getParameter("customername").toString(),
			request.getParameter("billingstreet").toString(),
			request.getParameter("billingcity").toString(), 
			request.getParameter("billingstate").toString(), 
			request.getParameter("billingzip").toString(), 
			request.getParameter("contactfirstname").toString(),
			request.getParameter("contactlastname").toString(), 
			request.getParameter("contactphone").toString(), 
			request.getParameter("contactemail").toString(), 
			request.getParameter("contactposition").toString());
	response.sendRedirect("customerdetails.jsp?customerid="
			+ request.getParameter("customerid").toString() + "&msgerror=" + r);


%>